package com.health.platform.common.sys.user.controller;

import com.health.platform.common.restful.AppResponse;
import com.health.platform.common.sys.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>用户信息Controller</p>
 * <p>创建日期：2021-02-07</p>
 *
 * @author zhou-qf
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private UserService userService;

    /**
     * 获取登录用户信息
     *
     * @return 用户信息结果
     */
    @GetMapping
    public AppResponse getUserInfo(){
        return userService.getUserInfo();
    }

}
